package lab2;

import java.io.File;
import java.net.URL;

import static lab2.ReadUtil.read_data_file;

public abstract class Builder {
    String[][] matrix;
    void initMatrix(){
        //URL url = getClass().getClassLoader().getResource("BuilderDemo.dat");
        URL url = getClass().getResource("/BuilderDemo.dat");
        System.out.println(url);
        String file_name = url.getFile();
        matrix = read_data_file(file_name);
    }
    abstract void buildTable();
}
